<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <jsp:include page="/resources/inc/pageHead.jsp" />
    <link href="${basePath}/resources/zheng-admin/plugins/zTree_v3/css/demo.css" rel="stylesheet"/>
    <link href="${basePath}/resources/zheng-admin/plugins/zTree_v3/css/metroStyle/metroStyle.css" rel="stylesheet"/>
</head>
<body>
<form class="layui-form layui-form-pane" id="_form">
    <input type="hidden" value="${fileIds}" name="fileIds">
    <div class="layui-form-item">
        <label class="layui-form-label">分享用户</label>
        <div class="layui-input-block ztreeDiv">
            <input type="text" readonly="readonly" lay-verify="required"
                   placeholder="请选择分享用户" class="layui-input" onclick="ZtreeCommon.showMenu(this)" ztreeId="ztree">
            <input type="hidden" name="userIds" ztreeId="ztree">
        </div>
        <div class="menuContent" style="display:none; position: absolute;z-index: 10000">
            <ul id="ztree" class="ztree" style="margin-top:0; width:220px;"></ul>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="float: right">
            <button class="layui-btn" lay-submit="" lay-filter="sub" type="button">立即提交</button>
        </div>
    </div>
</form>
</body>
<jsp:include page="/resources/inc/pageFooter.jsp" />
<script src="${basePath}/resources/zheng-admin/js/my-ztree-common.js"></script>
<script>
    var zNodes = getOrganizationTree(false, true, false);
    $(function () {
        $.fn.zTree.init($("#ztree"), ZtreeCommon.checkBoxSetting, zNodes);
        FormCommon.initForm({
            url: "${basePath}/manage/oss/file/personal/shareFile"
        });
    });
</script>
</html>
